"""返回当前作⽤域中的名字"""

a = 1
print(locals())

"""
{'__name__': '__main__', '__doc__': '返回当前作用域中的名字', '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader 
object at 0x0000000001DDF848>, '__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': 
'E:/Workerspace_python/python/2.基础/5.函数/内置函数/1.locals.py', '__cached__': None, 'a': 1}
"""
